package com.aaa.forum.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 全局变量的定义
 */
@Configuration
public class AppConfig {
    // HttpSession 中, 存储用户信息的 key 值
    public static final String USER_SESSION = "USER_SESSION";
    public static String IMAGE_PATH;

    @Value("${forum.imagePath}")
    public void setImagePath(String imagePath) {
        IMAGE_PATH = imagePath;
    }
}
